<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/pages/common/taglib.jsp"%>

<c:forEach var="metalcalculation" varStatus="metalcalculationindex" items="${datas}">
	<tr>
		<td>
			${metalcalculation.id}
			<c:if test="${metalcalculationindex.index==0}"><input type="hidden" id="itemCount" value="${itemCount}"/></c:if>
		</td>
		<td class="keys">${metalcalculation.metakName}</td>
		<td>${metalcalculation.seriesName}</td>
		<td >${metalcalculation.ratio}</td>
		<td >${metalcalculation.added}</td>
		<td >${metalcalculation.depreciation}</td>
		<td class="tmui-tips" tip="${tz:formatDate(metalcalculation.createTime,'yyyy-MM-dd HH:mm:ss')}">
				${tz:timeFormat(metalcalculation.createTime)}
		</td>
		<td>
			<tz:if test="${metalcalculation.deleteCode=='001'}">
				<tz:then><a href="javascript:void(0)" opid="${metalcalculation.id}" mark="deleteCode" val="002" onclick="tzAdmin.op(this);" class="green">否</a></tz:then>
                	<tz:else><a href="javascript:void(0)" opid="${metalcalculation.id}" mark="deleteCode" val="001" onclick="tzAdmin.op(this);" class="red">是</a></tz:else>
			</tz:if>
		</td>

		<td>
			<a href="${adminPath}/service/metalcalculation/edit/${metalcalculation.id}"  class="btn btn-success" >修改</a>
			<a href="javascript:void(0);" data-opid="${metalcalculation.id}" onclick="tzAdmin.remove(this)" class="btn btn-danger">删除</a>
		</td>
	</tr>
</c:forEach>
